<template>
	<view class="hun" style="background-color: #EEEEEE;position: relative;height: 100%;">
		<view class="inv-h-w">

			<view :class="['inv-h',Inv==5?'inv-h-se':'']" @click="yj_searchForm(Inv=5)">详情</view>
			<view :class="['inv-h',Inv==0?'inv-h-se':'']" @click="yj_searchForm(Inv=0)">闭合申请单</view>
			<view v-if="Fdata.F_CheckStatus>=1" :class="['inv-h',Inv==1?'inv-h-se':'']" @click="yj_searchForm(Inv=1)">一级审核</view>
			<view v-if="Fdata.F_CheckStatus>=2" :class="['inv-h',Inv==2?'inv-h-se':'']" @click="yj_searchForm(Inv=2)">二级审核</view>
			<view v-if="Fdata.F_CheckStatus>=3" :class="['inv-h',Inv==3?'inv-h-se':'']" @click="yj_searchForm(Inv=3)">三级审核</view>
			<view v-if="Fdata.F_CheckStatus>=4" :class="['inv-h',Inv==4?'inv-h-se':'']" @click="yj_searchForm(Inv=4)">四级审核</view>
		</view>

		<view style="position: absolute;width: 100%;margin-top: 100upx">
			<view class="formPage" v-if="Inv==5">
				<form>
					<view class="formPage-titel">
						<view>
							基本信息
						</view>
					</view>
					<cLabel title='施工标段' v-model='totalData.dischargeinfo.fCompanyname' :disabled="true"
						:dataText='totalData.dischargeinfo.fCompanyname' must="no" rightIcon='' mode='text' />
					<cLabel title='拌和站' v-model='totalData.dischargeinfo.fStationid' :disabled="true"
						:dataText='totalData.dischargeinfo.fStationid' rightIcon='' must="no" mode='text' />


					<cLabel title='拌和机' must="no" v-model='totalData.dischargeinfo.fMachineid' :disabled="true"
						:dataText='totalData.dischargeinfo.fMachineid' rightIcon='' mode='text' />

					<cLabel title='生产任务单' must="no" v-model='totalData.dischargeinfo.fProducetasknumber' :disabled="true"
						:dataText='totalData.dischargeinfo.fProducetasknumber' rightIcon='' mode='textarea' />

					<cLabel title='工程名称' must="no" v-model='totalData.dischargeinfo.fEngineeringname' :disabled="true"
						:dataText='totalData.dischargeinfo.fEngineeringname' rightIcon='' mode='text' />
					<cLabel title='工程部位' must="no" v-model='totalData.dischargeinfo.fEngineeringpartname' :disabled="true"
						:dataText='totalData.dischargeinfo.fEngineeringpartname' rightIcon='' mode='text' />
					<cLabel title='实际方量(m³)' must="no" v-model='totalData.dischargeinfo.fActualcalculation' :disabled="true"
						:dataText='totalData.dischargeinfo.fActualcalculation' rightIcon='' mode='text' />
					<cLabel title='强度等级' must="no" v-model='totalData.dischargeinfo.fStrengthgrade' :disabled="true"
						:dataText='totalData.dischargeinfo.fStrengthgrade' rightIcon='' mode='text' />
					<cLabel title='拌和时长(s)' must="no" v-model='totalData.dischargeinfo.fMixupduration' :disabled="true"
						:dataText='totalData.dischargeinfo.fMixupduration' rightIcon='' mode='text' />

					<cLabel title='运输车牌号' must="no" v-model='totalData.dischargeinfo.fTransportvehiclenumber'
						:disabled="true" :dataText='totalData.dischargeinfo.fTransportvehiclenumber' rightIcon=''
						mode='text' />
					<cLabel title='水胶比' must="no" v-model='totalData.dischargeinfo.fWaterbinderratio' :disabled="true"
						:dataText='totalData.dischargeinfo.fWaterbinderratio' rightIcon='' mode='text' />


					<cLabel title='外加剂掺量（%)' must="no" v-model='totalData.dischargeinfo.fAdditiveratio' :disabled="true"
						:dataText='totalData.dischargeinfo.fAdditiveratio' rightIcon='' mode='text' />
					<cLabel title='预警级别' must="no" v-model='totalData.dischargeinfo.fWarninglevel' :disabled="true"
						:dataText='totalData.dischargeinfo.fWarninglevel' rightIcon='' mode='text' />
					<cLabel title='出料时间' must="no" v-model='totalData.dischargeinfo.fDischargedates' :disabled="true"
						:dataText='totalData.dischargeinfo.fDischargedates' rightIcon='' mode='text' />



					<view class="cu-form-group" style="margin-bottom: 50upx;">
					</view>
					<div class="wrapper" v-if="appliance==1&&btnShow==true">
						<div class="list">
							<text class="text" @click="clickNum(2)">保存</text>
						</div>
					</div>
				</form>

			</view>

			<view class="formPage" v-if="Inv==0">
				<form>
					<view style="width: 100%;">
						<view class="formPage-titel">
							<view>
								闭合申请单
							</view>
						</view>
						<cLabel title='预警内容' must="no" v-model='totalData.closeinfo.fWarningcontent' :disabled="true"
							:dataText='totalData.closeinfo.fWarningcontent' rightIcon='' mode='textarea' />
						<cLabel title='问题原因' :must="must0" v-model='totalData.closeinfo.fReason' :disabled="readonly0"
							:dataText='totalData.closeinfo.fReason' rightIcon='' mode='text' />
						<cLabel title='处理方式' :must="must0" v-model='totalData.closeinfo.fHandleway'
							:disabled="readonly0" :dataText='totalData.closeinfo.fHandleway' rightIcon='' mode='text' />

						<cLabel :disabled="readonly0" title='处置结果' :must="must0" :flagNum="closeNum"
							v-model='totalData.closeinfo.fHandleresult' :dataText='totalData.closeinfo.fHandleresult'
							:selectList="handle" mode='selector2' />
						<cLabel title='处理日期' over="calc(5em + 15px)" :dataText='totalData.closeinfo.fHandledates'
							:must="must0" :disabled="readonly0" v-model='totalData.closeinfo.fHandledates'
							mode='date1' :flagNum="closeNum" />
						<cLabel title='处理人' v-model='totalData.closeinfo.fHandleusername' :must="must0"
							:disabled="readonly0" :dataText='totalData.closeinfo.fHandleusername' rightIcon=''
							mode='text' />
						<view class="cu-bar bg-white" style="border-top:1px #ccc solid ;">
							<view class="action">
								<image :src="unIcon" mode="" style="width: 30upx;height: 30upx;vertical-align: middle;">
									附件
							</view>
							<view class="action">
								{{fPhotofilelist.length}}/{{count}}
							</view>
						</view>
						<!--  -->
						<view v-if="must0 == 'must'" class="cu-form-group">
							<view class="grid col-4 grid-square flex-sub">
								<view v-if="fPhotofilelist.length<count">
									<lsj-upload ref="lsjUpload" childId="upload" :width="heights" :height="heights"
										:option="option" :size="size" :debug="debug" :instantly="instantly"
										@progress="onprogressfRecheckfileList" @change="onChange" :count='count'>
										<view class="solids" style="width: 156rpx;height: 156rpx;">
											<text class='cuIcon-add'></text>
										</view>
										<!-- <view class="btn" :style="{height: height}">选择附件</view> -->
									</lsj-upload>
								</view>


								<view class="bg-img" v-for="(item,index) in fPhotofilelist" :key="index"
									:data-url="item.url" @tap="pdfPage(item.name, item.url)">
									<image src="@/static/pdf.png" mode="aspectFill"></image>
									<view class="cu-tag bg-red"
										@tap.stop="DelFilefRecheckfileList($event,item.fId,index)">
										<text class='cuIcon-close'></text>
									</view>
									<view class="fileText"> {{item.name}}</view>
								</view>

							</view>
						</view>
						<view v-if="must0 == 'no'" class="fileList">
							<div class="box" v-if="fPhotofilelist.length !== 0">
								<div class="file" style v-for="(item, index) in fPhotofilelist" :key="index"
									@click="pdfPage(item.name, item.url)">
									<image src="@/static/pdf.png">
									</image>
									<span class="text" style>{{ item.name }}</span>
								</div>
							</div>
						</view>


					</view>

					<view class="cu-form-group" style="margin-bottom: 100upx;">
					</view>
					<div class="wrapper" v-if="appliance==1&&btnShow==true">
						<div class="list">
							<text class="text" @click="clickNum(2)">保存</text>
						</div>
					</div>
				</form>
			</view>




			<view class="formPage" v-if="Inv==1">
				<form>

					<view
						v-if="companyNum == 1 ||companyNum == 2 ||companyNum == 3 ||companyNum == 4 ||companyNum == 5">
						<view class="formPage-titel">
							<view>
								一级审核
							</view>

						</view>
						<cLabel title='处置结果' :must="must1" v-model='totalData.closeinfo.fFirstcheckresult'
							:disabled="readonly1" :dataText='totalData.closeinfo.fFirstcheckresult'
							:selectList="handle1" mode='selector2' :flagNum="FirstNum" @input='selectorFun' />
						<cLabel title='处理日期' over="calc(5em + 15px)" :dataText='totalData.closeinfo.fFirstcheckdates'
							:must="must1" :disabled="readonly1" v-model='totalData.closeinfo.fFirstcheckdates'
							mode='date1' :flagNum="flagNum" />
						<cLabel title='处理人' v-model='totalData.closeinfo.fFirstcheckusername' :must="must1"
							:disabled="readonly1" :dataText='totalData.closeinfo.fFirstcheckusername' rightIcon=''
							mode='text' />
						<cLabel title='处理意见' must="no" v-model='totalData.closeinfo.fFirstcheckopinion'
							:disabled="readonly1" :dataText='totalData.closeinfo.fFirstcheckopinion' rightIcon=''
							mode='textarea' />
					</view>



					<view class="cu-form-group" style="margin-bottom: 100upx;">
					</view>
					<div class="wrapper" v-if="appliance==1&&btnShow==true">
						<div class="list">
							<text class="text" @click="clickNum(2)">保存</text>
						</div>
					</div>
				</form>
			</view>
			<view class="formPage" v-if="Inv==2">
				<form>
					<view v-if="companyNum == 2 ||companyNum == 3 ||companyNum == 4 ||companyNum == 5">
						<view class="formPage-titel">
							<view>
								二级审核
							</view>

						</view>
						<cLabel :disabled="readonly2" title='处置结果' :must="must2"
							v-model='totalData.closeinfo.fSecondcheckresult'
							:dataText='totalData.closeinfo.fSecondcheckresult' :selectList="handle1" mode='selector2'
							@input='selectorFun' :flagNum="SecondNum" />
						<cLabel :disabled="readonly2" title='处理日期' over="calc(5em + 15px)"
							:dataText='totalData.closeinfo.fSecondcheckdates' :must="must2"
							v-model='totalData.closeinfo.fSecondcheckdates' mode='date1' :flagNum="flagNum" />
						<cLabel :disabled="readonly2" title='处理人' :must="must2"
							v-model='totalData.closeinfo.fSecondcheckusername'
							:dataText='totalData.closeinfo.fSecondcheckusername' rightIcon='' mode='text' />
						<cLabel :disabled="readonly2" title='处理意见' must="no"
							v-model='totalData.closeinfo.fSecondcheckopinion'
							:dataText='totalData.closeinfo.fSecondcheckopinion' rightIcon='' mode='textarea' />
					</view>
					<view class="cu-form-group" style="margin-bottom: 100upx;">
					</view>
					<div class="wrapper" v-if="appliance==1&&btnShow==true">
						<div class="list">
							<text class="text" @click="clickNum(2)">保存</text>
						</div>
					</div>
				</form>
			</view>
			<view class="formPage" v-if="Inv==3">
				<form>

					<view v-if="companyNum == 3 ||companyNum == 4 ||companyNum == 5">
						<view class="formPage-titel">
							<view>
								三级审核
							</view>

						</view>
						<cLabel title='处置结果' v-model='totalData.closeinfo.fThirdcheckresult' :must="must3"
							:disabled="readonly3" :dataText='totalData.closeinfo.fThirdcheckresult'
							:selectList="handle1" mode='selector2' @input='selectorFun' :flagNum="ThirdNum" />
						<cLabel title='处理日期' over="calc(5em + 15px)" :dataText='totalData.closeinfo.fThirdcheckdates'
							:must="must3" :disabled="readonly3" v-model='totalData.closeinfo.fThirdcheckdates'
							mode='date1' :flagNum="flagNum" />
						<cLabel title='处理人' v-model='totalData.closeinfo.fThirdcheckusername' :must="must3"
							:disabled="readonly3" :dataText='totalData.closeinfo.fThirdcheckusername' rightIcon=''
							mode='text' />
						<cLabel title='处理意见' must="no" v-model='totalData.closeinfo.fThirdcheckopinion'
							:disabled="readonly3" :dataText='totalData.closeinfo.fThirdcheckopinion' rightIcon=''
							mode='textarea' />
					</view>
					<view class="cu-form-group" style="margin-bottom: 100upx;">
					</view>
					<div class="wrapper" v-if="appliance==1&&btnShow==true">
						<div class="list">
							<text class="text" @click="clickNum(2)">保存</text>
						</div>
					</div>
				</form>
			</view>
			<view class="formPage" v-if="Inv==4">
				<form>

					<view v-if="companyNum == 4 ||companyNum == 5">
						<view class="formPage-titel">
							<view>
								三级审核
							</view>

						</view>
						<cLabel title='处置结果' v-model='totalData.closeinfo.fFourthcheckresult' :must="must4"
							:disabled="readonly4" :dataText='totalData.closeinfo.fFourthcheckresult'
							:selectList="handle1" mode='selector2' @input='selectorFun' :flagNum="FourthNum" />
						<cLabel title='处理日期' over="calc(5em + 15px)" :dataText='totalData.closeinfo.fFourthcheckdates'
							:must="must4" :disabled="readonly4" v-model='totalData.closeinfo.fFourthcheckdates'
							mode='date1' :flagNum="flagNum" />
						<cLabel title='处理人' v-model='totalData.closeinfo.fFourthcheckusername' :must="must4"
							:disabled="readonly4" :dataText='totalData.closeinfo.fFourthcheckusername' rightIcon=''
							mode='text' />
						<cLabel title='处理意见' must="no" v-model='totalData.closeinfo.fFourthcheckopinion'
							:disabled="readonly4" :dataText='totalData.closeinfo.fFourthcheckopinion' rightIcon=''
							mode='textarea' />
					</view>
					<view class="cu-form-group" style="margin-bottom: 100upx;">
					</view>
					<div class="wrapper" v-if="appliance==1&&btnShow==true">
						<div class="list">
							<text class="text" @click="clickNum(2)">保存</text>
						</div>
					</div>
				</form>
			</view>
			<loading :shadeShow="shadeShow" :shadeClick="false" :backgroundColor="backgroundColor" :width="width"
				:height="height" ref="loading" :custom="false" :type="1" @callback="callback()">
			</loading>

		</view>

	</view>
</template>

<script src="./index.js">
</script>

<style scoped lang="less">
	@import './index.less';
</style>
